home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9124 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: druid.borland.com!usenet
  2. From: pete@borland.com (Pete Becker)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Fahrenheight to Celsius?
  5. Date: 28 Feb 1996 20:15:32 GMT
  6. Organization: Borland International
  7. Message-ID: <4h2d54$m70@druid.borland.com>
  8. References: <4fvthq$2bl@newserv.agcs.com> <4fra3q$ddt@newsbf02.news.aol.com> <1996Feb26.060213.23285@lafn.org> <4h1v08$eks@druid.borland.com> <xmsb.825531341@shadow>
  9. NNTP-Posting-Host: pbecker.borland.com
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=ISO-8859-1
  12. X-Newsreader: WinVN 0.99.5
  13.  
  14. In article <xmsb.825531341@shadow>, xmsb@shadow.borland.com says...
  15. >
  16. >pete@borland.com (Pete Becker) writes:
  17. >
  18. >>In article <1996Feb26.060213.23285@lafn.org>, an234@lafn.org says...
  19. >>>
  20. >>>F = C*(9/5) +32
  21. >>>C = (F-32)*(5/9)
  22. >
  23. >>He was better off without this answer, which is wrong.
  24. >
  25. >    my favorite conversion equations, which i learned from
  26. >    reading an article by isaac asimov, is not only simpler,
  27. >    but avoids having to worry as much about the "obvious"
  28. >    problem when written as C++:
  29. >
  30. >F = (C + 40) / 1.8 - 40
  31. >C = (F + 40) * 1.8 - 40
  32. >
  33. >    for reasons i've never understood, these are not the
  34. >    equations one will find in most books.
  35.  
  36. I think these are much more elegant and easier to remember. The drawback that 
  37. I see is that they don't fit the physical analog of what's going on. It's easy 
  38. to picture two thermometers side by side and see that you have to adjust the 
  39. values to map between 0-100 and 32-212. It's not at all clear that that's 
  40. what's happening with this form.
  41.     -- Pete
  42.  
  43.